package task5_6;

/**
 * 用户类:保存的是用户的基本信息
 * @author Administrator
 */
public class User extends chap05.User {
   private String name;
   private String Password;

    public User() {
    }

    public User(String name, String password) {
        this.name = name;
        Password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return Password;
    }

    public void setPassword(String password) {
        Password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", Password='" + Password + '\'' +
                '}';
    }
}
